﻿/***************************************************************
 * Name:      HouseholdManagementMain.h
 * Purpose:   Defines Application Frame
 * Author:    JHC (wqvbjhc@gmail.com)
 * Created:   2012-08-30
 * Copyright: JHC (http://my.csdn.net/wqvbjhc)
 * License:
 **************************************************************/

#ifndef HOUSEHOLDMANAGEMENTMAIN_H
#define HOUSEHOLDMANAGEMENTMAIN_H

//(*Headers(HouseholdManagementFrame)
#include <wx/menu.h>
#include <wx/frame.h>
#include <wx/statusbr.h>
//*)
#include <wx/button.h>
class HouseholdManagementFrame: public wxFrame
{
public:

    HouseholdManagementFrame(wxWindow* parent,wxWindowID id = -1);
    virtual ~HouseholdManagementFrame();

private:
    void OnEraseBackground(wxEraseEvent& event);

    void OnQuit(wxCommandEvent& event);
    void OnAbout(wxCommandEvent& event);
    void OnMBackup(wxCommandEvent& event);
    void OnMRestore(wxCommandEvent& event);
    void OnMOpt(wxCommandEvent& event);
    void OnMType(wxCommandEvent& event);
    void OnMUser(wxCommandEvent& event);
    void OnMMenu(wxCommandEvent& event);
    void OnMMeals(wxCommandEvent& event);
    void OnMCash(wxCommandEvent& event);
    void OnMRent(wxCommandEvent& event);
    void OnMOil(wxCommandEvent& event);
    void OnMGas(wxCommandEvent& event);
    void OnMRice(wxCommandEvent& event);
    void OnMReportCash(wxCommandEvent& event);
    void OnMReportMeals(wxCommandEvent& event);
    void OnMReportMenu(wxCommandEvent& event);
    void OnMReportDay(wxCommandEvent& event);
    void OnMReportMonth(wxCommandEvent& event);
    void OnMReportYear(wxCommandEvent& event);
    void OnMReportDailyNecess(wxCommandEvent& event);
    void OnMReportRent(wxCommandEvent& event);

    static const long IDMenuQuit;
    static const long IDMenuAbout;
    static const long ID_STATUSBAR1;
    static const long ID_M_BACKUP;
    static const long ID_M_RESTORE;
    static const long ID_M_OPT;
    static const long ID_M_TYPE;
    static const long ID_M_USER;
    static const long ID_M_MENU;
    static const long ID_M_MEALS;
    static const long ID_M_CASH;
    static const long ID_M_RENT;
    static const long ID_M_OIL;
    static const long ID_M_GAS;
    static const long ID_M_RICE;
    static const long ID_M_REPORT_CASH;
    static const long ID_M_REPORT_MEALS;
    static const long ID_M_REPORT_MENU;
    static const long ID_M_REPORT_DAY;
    static const long ID_M_REPORT_MONTH;
    static const long ID_M_REPORT_YEAR;
    static const long ID_M_REPORT_DAILYNECESS;
    static const long ID_M_REPORT_RENT;

    static const long ID_BTN_MEALS;
    static const long ID_BTN_RICE;
    static const long ID_BTN_OIL;
    static const long ID_BTN_GAS;
    static const long ID_BTN_RENT;
    static const long ID_BTN_RCASH;
    static const long ID_BTN_RMEALS;
    static const long ID_BTN_RMENU;
    static const long ID_BTN_RDAY;
    static const long ID_BTN_RMONTH;
    static const long ID_BTN_RYEAR;
    static const long ID_BTN_RDAILYNECESS;
    static const long ID_BTN_RRENT;
    static const long ID_BTN_LIVINGEXP;

    wxMenu* m_MReport;
    wxMenuItem* m_MR_Menu;
    wxMenuItem* m_MR_Meals;
    wxMenuItem* m_MR_Cash;
    wxMenuItem* m_MR_Day;
    wxMenuItem* m_MR_Month;
    wxMenuItem* m_MR_Year;
    wxMenuItem* m_MR_DailyNecess;
    wxMenuItem* m_MR_Rent;

    wxMenu* m_MData;
    wxMenuItem* m_MMenu;
    wxMenuItem* m_MType;
    wxMenuItem* m_MUser;

    wxMenu* m_MDaily;
    wxMenuItem* m_MCash;
    wxMenuItem* m_MMeals;
    wxMenuItem* m_MRent;
    wxMenuItem* m_MOil;
    wxMenuItem* m_MGas;
    wxMenuItem* m_MRice;

    wxMenu* m_MFile;
    wxMenuItem* m_MRestore;
    wxMenuItem* m_MBackup;
    wxMenuItem* m_MOptimize;
    wxMenuItem* m_MQuit;

    wxMenu* m_MHelp;
    wxMenuItem* m_MAbout;

    wxStatusBar* m_StatusBar;

    wxButton *btn_meals_;
    wxButton *btn_rice_;
    wxButton *btn_oil_;
    wxButton *btn_gas_;
    wxButton *btn_rent_;
    wxButton *btn_rcash_;
    wxButton *btn_rmeals_;
    wxButton *btn_rmenu_;
    wxButton *btn_rday_;
    wxButton *btn_rmonth_;
    wxButton *btn_ryear_;
    wxButton *btn_rdailynecess_;
    wxButton *btn_rrent_;
    wxButton *btn_livingexp_;
//自定义函数
    void InitMenu();
    DECLARE_EVENT_TABLE()
};

#endif // HOUSEHOLDMANAGEMENTMAIN_H
